<script id="list-tpl" type="text/html"
        data-params='{"url":"/education/admin/productGroup","dataName":"productGroupData","pageid":"#page", "method":"post"}'>
    <table id="example" class="layui-table lay-even" data-name="productGroupData" data-tplid="list-tpl">
        <thead>
            <tr>
                <th width="30"><input type="checkbox" id="checkall" data-name="checkbox" lay-filter="check"
                                      lay-skin="primary"></th>
                <th>专场名</th>
                <th>产品名</th>
                <th width="150">产品编号</th>
                <th width="150">产品图片</th>
                <th width="80">排序</th>
                <th width="170">添加时间</th>
                <!--<th width="200">操作</th>-->
            </tr>
        </thead>
        <tbody>
            {{# layui.each(d.list, function(index, item){ }}
            <tr>
                <td><input type="checkbox" name="checkbox" value="{{ item.id}}" lay-skin="primary"></td>
                <td>{{ item.group_name }}</td>
                <td>
                    {{ item.product_name||'' }}
                </td>
                <td>
                    {{ item.product_no||'' }}
                </td>
                <td>
                    <img src="/education{{ item.cover_image }}" alt="..." class="img-thumbnail">
                </td>
                <td class="edit" data-list='{"key":"id={{ item.id}}","filed":"ord","render":"true"}'
                    data-params='{"url":"/education/admin/productGroup/update/{{item.id}}", "data":"id={{ item.id}}" }'>
                    {{ item.ord||'' }}
                </td>
                <td>{{ item.create_time||'' }}</td>
            </tr>
            {{# }); }}
        </tbody>

    </table>
</script>